package com.jtpay.sdk.util;

import android.content.Context;

/**
 * Created by Steven on 2017/4/15 0015.
 */

public abstract class ContextUtil {
    private static Context sContext;

    public static void setContext(Context context) {
        sContext = context;
    }

    public static Context getContext() {
        if (null == sContext) {
            throw new RuntimeException("Context must be set!");
        }
        return sContext;
    }
}
